<?php
class post extends DatabaseObject {
  function __construct($id=NULL) {
    parent::__construct('posts','id',$id);
  }
  function connect() {
    $this->has_one('thread','thread_id');
  }
}
?>